how to find the most repeated character in a string in c